/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modelo;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.io.Serializable;
import java.util.Calendar;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
* @author felipe
*/

@Entity
@Table (name="felipe.pessoa")
public class Pessoa implements Serializable {
	@Id
	@SequenceGenerator(name="cd_pessoa")
	@GeneratedValue(generator="cd_pessoa")
	private Integer id;
	
	@Column(name="nm_pessoa")
	private String nome;
	
	//@Temporal(TemporalType.DATE)
	//private Calendar aniversario;
	
	public Pessoa(){
	}
	/*
        public Pessoa(String nome, Calendar aniversario) {
            this.nome = nome;
            this.aniversario = aniversario;
        }
        */
        public Pessoa(String nome) {
            this.nome = nome;
        }
        
        /*
	public Calendar getAniversario() {
            return this.aniversario;
	}
	
	public void setAniversario(Calendar aniversario) {
            this.aniversario = aniversario;
	}
	*/
	public Integer getId() {
            return this.id;
	}
	
	public void setId(Integer id) {
            this.id = id;
	}
	
	public String getNome() {
            return this.nome;
	}
	
	public void setNome(String nome) {
            this.nome = nome;       
        }       
}	